package order;

import java.math.BigDecimal;
import java.time.LocalDateTime;

class User {
    private String id;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public User(String id, String name) {
        this.id = id;
        this.name = name;
    }

    private String name;

    // 构造方法、getter/setter 略
}

class Order {
    private String orderId;

    public Order(String orderId, String userId, BigDecimal amount, LocalDateTime orderTime) {
        this.orderId = orderId;
        this.userId = userId;
        this.amount = amount;
        this.orderTime = orderTime;
    }

    private String userId;

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public LocalDateTime getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(LocalDateTime orderTime) {
        this.orderTime = orderTime;
    }

    private BigDecimal amount;     // 订单金额
    private LocalDateTime orderTime; // 下单时间

    // 构造方法、getter/setter 略
}